package edu.hpu.mybatis02.controller;

import edu.hpu.mybatis02.pojo.MallUserRegisterParam;
import edu.hpu.mybatis02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    //控制层调用业务层
    @Autowired
    UserService userService;

    @RequestMapping("/register")
    //http://127.0.0.1:9090/register?username=root&password=123
    public boolean register(MallUserRegisterParam mallUserRegisterParam){
      return   userService.register(mallUserRegisterParam);
    }

}
